import request from '@/utils/request'

// 创建日报表1
export function createReportDay1(data) {
  return request({
    url: '/water/report-day1/create',
    method: 'post',
    data: data
  })
}

// 更新日报表1
export function updateReportDay1(data) {
  return request({
    url: '/water/report-day1/update',
    method: 'put',
    data: data
  })
}

// 删除日报表1
export function deleteReportDay1(id) {
  return request({
    url: '/water/report-day1/delete?id=' + id,
    method: 'delete'
  })
}

// 获得日报表1
export function getReportDay1(id) {
  return request({
    url: '/water/report-day1/get?id=' + id,
    method: 'get'
  })
}

// 获得日报表1分页
export function getReportDay1Page(query) {
  return request({
    url: '/water/report-day1/page',
    method: 'get',
    params: query
  })
}

// 导出日报表1 Excel
export function exportReportDay1Excel(query) {
  return request({
    url: '/water/report-day1/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

// 获得日报
export function getReportOneDay1List(date) {
  return request({
    url: '/water/report-day1/get-one-day-report?date=' + date,
    method: 'get'
  })
}

// 获得N天数据
export function getNDayReport(data) {
  return request({
    url: '/water/report-day1/get-n-day-report',
    method: 'post',
    data: data
  })
}
